;(function($){
	var main = function(){
		var dish;
		
		var validateDescHover = function(){
			var tooltip; 
			dish.find(".shopcard-content").hover(
				function(){
					tooltip = $(this).parent().find(".shopcard-recommen").eq(0);
					tooltip.stop(true).fadeIn(300);
				}
				,function(){
					tooltip = $(this).parent().find(".shopcard-recommen").eq(0);
					tooltip.stop(true).fadeOut(100);
				});
		}
		//克隆
		var cloneDish = function(){
			for(var i=0; i<12; i++){
				var newdish = dish.clone(true);
				//newdish
				newdish.appendTo(dish.parent());
			}
		}


		return {
			run: function(){
				dish = $(".shopcard").eq(0);
				
				validateDescHover();
				cloneDish();
			}
		}
	}();
	
	main.run();
})(jQuery);
